/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package drinkcounter.model;

import com.google.appengine.api.datastore.Key;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Toni
 */
@Entity
public class PartyHistorySnapshot extends AbstractEntity{
    private String partyId;
    private Date snapshotTime;
    private List<ParticipantHistorySnapshot> participants;


    @OneToMany
    public List<ParticipantHistorySnapshot> getParticipants() {
        return participants;
    }

    public void setParticipants(List<ParticipantHistorySnapshot> participants) {
        this.participants = participants;
    }

    public void setPartyId(String partyId) {
        this.partyId = partyId;
    }

    @Temporal(TemporalType.TIMESTAMP)
    public Date getSnapshotTime() {
        return snapshotTime;
    }

    public void setSnapshotTime(Date snapshotTime) {
        this.snapshotTime = snapshotTime;
    }
}
